<?php

class JF_RenderUtil {

	public static function renderLayout($sSource, JF_Layout $oLayout = null) {
		if (JF_FileUtil::exists($sSource)) {
			include_once $sSource;
		}
		else {
			echo '[' . $sSource . ']';
		}

	}

	public static function renderView($sSource, array $aView = array()) {
		if (JF_FileUtil::exists($sSource)) {
			include_once $sSource;
		}
		else {
			echo '[' . $sSource . ']';
		}

	}

}